package com.zhijiang.hospital.mapper;

import com.zhijiang.hospital.entrty.Meeting;
import com.zhijiang.hospital.entrty.MeetingCheckRecode;
import com.zhijiang.hospital.entrty.dto.EmployeeDto;
import com.zhijiang.hospital.entrty.dto.MeetingDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 75936
 * @version 1.0
 * @project zhiJiangHealthBureau
 * @description
 * @date 2023-01-10 09:15:47
 */
@Mapper
public interface MeetingMapper {
    List<Meeting> findAll();

    Integer insertMeeting(Meeting meeting);

    Meeting selectMeeting(String mCode);

    List<Meeting> selectMeetingList(@RequestParam("startTime") String startTime,
                                    @RequestParam("endTime")String endTime
                                 );
    List<String> findMCode(String mCode);

    Meeting getMeeting(String mCode);

    List<EmployeeDto> findMeeting(String mCode);

    void meetingApproval(@RequestParam("mCode") String mCode, @RequestParam("emplCode")String emplCode);

    void updateText(@Param("mCode") String mCode,@Param("text") String text);

    void updateText1(@Param("mCode") String mCode,@Param("text") String text);

    void updateText2(@Param("mCode") String mCode,@Param("text") String text);

    Integer update(@Param("mCode")String mCode,@Param("bytes") byte[] bytes,@Param("suffixName") String suffixName);

    MeetingCheckRecode findMeetingCheckRecode(@Param("mCode") String mCode,@Param("emplCode")String emplCode );

    List<EmployeeDto> findLeave(String mCode);

    void setPh(@Param("mCode") String mCode,@Param("file") String s);

    void setTime(@Param("mCode")String mCode, @Param("time")int time);

    void setTwoSign(@Param("meeting")Meeting meeting);

    void updatetime(@Param("mCode") String mCode,@Param("s")String  s);
}
